<init>
subevent(mapinit,);

item(check:eq,aT,1); if(nowres); mc(24,enegr,+=,(TSQ)); endif;
#item(check:eq,aT,1); if(nowres); mc(24,enegr,+=,(TS~U)); endif;
#item(check:eq,aT,1); if(nowres); mc(24,enegr,+=,(TS~U,ȂTSR,TLTSR,cglTSR)); endif;
#item(check:eq,XL[,1); or; item(check:eq,,1); if(nowres);
#mc(24,enegr,+=,(`S~U,Ȃ`SR,TL`SR,cgl`SR));
#item(check:eq,aT,1); if(nowres); mc(24,enegr,+=,(TS`SR)); endif;
#,`S,ȂTSR,TLTSR,TSQ
#endif;

#item(check:eq,XP[gC,1); and; item(check:eq,r[T,1); and; item(check:eq,XP,1); and; item(check:eq,XL[,1); and; item(check:eq,,1); and; item(check:eq,@r,1); and; item(check:eq,Ђ傤,1); and; item(check:eq,ToCU[,1); and; item(check:eq,,1); and; item(check:eq,},1); if(nowres); fc(yj,apr,=,1); else; fc(yj,apr,=,0); endif;

subevent(yj5adbl,); if(nowres);
mc(24,enegr,+=,(xi|`T));
endif;


#RQR
<to1>
fade(out,(type=fade,color=000000,wait=16)); fc(*actor,move,13,-37,center); fc(*actor,dir,=,d); fc(*actor,float,=,0); changemap(^̎R); fc(c2,apr,=,0); fc(c3,apr,=,0); fade(in,(type=fade,color=000000,wait=16));
fc(c5,apr,=,1); fc(c5,ani,=,0); fc(c4,apr,=,1);
#mapname(0); fc(c4,apr,=,1);


#O
<out>
fade(out,(type=fade,color=000000,wait=16)); fc(*actor,move,29,-17,center); fc(*actor,dir,=,d); fc(*actor,float,=,0); changemap(tB[h); fade(in,(type=fade,color=000000,wait=16));


#Oցij
<dropout>
sound(drop); fade(out,(type=fade,color=00ffff,wait=16)); fc(*actor,move,29,-17,center); fc(*actor,dir,=,d); fc(*actor,float,=,128); changemap(tB[h); fade(in,(type=fade,color=000000,wait=16));


#ɒ
<gcseisui>
evflagsw(pr_jikken,=,1);

item(check:eq,,1); and; item(check:eq,[Č,1); or; item(check:eq,ɒ,1); if(nowres);

sound(paraly); music(main,=,*silent);
fc(party2,chain,*null);
fc(*actor,walk,1,8,-1,0,r); return; wait(48);
fc(party2,chain,party1);
#fc(dir,*actor,==,0,7); goto(8); label(7); fc(move,,0,+0,+0,1); label(8);
#fc(move,,0,+0,+0,-3);
sound(sleep); fade(out,(type=fade,color=ffff00,wait=64)); fc(*target,picset,fch,org:nrm,=,coral); fc(*target,dir,=,~l); fade(in,(type=fade,color=ffff00,wait=64));
#select2(킷|߂Ă,0,1,0, ,4);
wait(16);
fade(out,(type=btdefo,color=btdefo,dep=btdefo,rot=btdefo,wait=btdefo)); battle((enegr=TS,back=hyper_fal,bgm=boss:0,fade=(type=zoom),stm=0,downefc=down5)); fade(in2,);
#(fbk_hyper,starfall)

evflag(*selected,==,1); if(nowres);
subevent(recover2,);
fade(out,(type=fade,color=ffff00,wait=64)); fc(*target,apr,=,0); music(main,=,*def:def); fade(in,(type=fade,color=ffff00,wait=64));
not; item(check:eq,ɒ,1); if(nowres); item(lost:eq,[Č,1); item(lost:eq,,1);
#item(change,,ɒ,3);
item(get,ɒ,1); if(nowres); sound(warp); text(0,w%it[*ɒ].nmicxɓꂽI); endif; endif;
text(1,(face=uam,swait=-1),%ct2dwCxgw%sysm[*ex-gcseis]xUI%cd\nSI\nw%it[*ɒ].nmicx茳ɎĂȂƍUĂƌȂȂ̂Œӂ悤I@tɍUƌȂꂽȂꍇ͋ɂɗaĂ܂I);
#evflagsw(pr_gcseis,=,1);
zukan(sysm:ex-gcseis,=,1);
end; endif;

evflag(*selected,==,3); if(nowres); goto(4); endif;

else;
text(1,face=uam,ޗȂI\n]͖I);
label(4); sound(drop); fade(out,(type=fade,color=00ffff,wait=16)); fc(*actor,move,29,-17,center); fc(*actor,dir,=,d); changemap(tB[h); fade(in,(type=fade,color=000000,wait=16));
endif;


<ato>
text(1,face=uam,ȏ͓ɉ悤B);


#nqg
<brd_chitei>
text(1,face=+evfch,s͐ĂĂAA͐ĂȂȂB);
zukan(map:LmRʘHn,!=,0); if(nowres); text(1,face=uam,w%map[*LmRʘH].nmicx̒nւ̍sӖĂ悤B); endif;
#evflagsw(pr_chitei,==,1);
#item(check:6,fʋ@,1);
#text(1,face=+evfch,LmR̓ɒnւ̓LBɑȂ@ōsł邾낤B܂×~ɂȂ̂ȂB);
#text(1,face=+evfch,LmR̓ɒnւ̓LBɑȂ@ōsł邾낤B܂×~ɂȂ̂ȂB);